package Typage;

import java.util.Vector;

import Error.TypeError;
import Semantique.Visitor;

public class Fconstructor extends Field {
	public Ident cstr_id;

	public VarList cstr_args;

	public Expr cstr_body;
	
	public int NbVariableDeclare;
	
	public Vector<String> typeList;
	
	public int GetArgCount()
	{
		return this.cstr_args.GetCount();
	}

	public Fconstructor(Ident cstr_id_init, VarList cstr_args_init,
			Expr cstr_body_init) {
		this.cstr_id = cstr_id_init;
		this.cstr_args = cstr_args_init;
		this.cstr_body = cstr_body_init;
	}

	@Override
	public
	void accept(Visitor v) throws TypeError {
		v.visit(this);
	}
}
